home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000014_amos-request@svcs1.digex.net_Fri Apr 4 12:12:53 1997.msg < prev    next >
Text File  |  1998-06-24  |  3KB  |  82 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id MAA29438
  3.     for <mcox@access.digex.net>; Fri, 4 Apr 1997 12:12:52 -0500 (EST)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id KAA02094
  6.     for amos-out; Fri, 4 Apr 1997 10:39:44 -0500 (EST)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id KAA02091
  9.     for <amos-list@svcs1.digex.net>; Fri, 4 Apr 1997 10:39:43 -0500 (EST)
  10. Received: from smtp1.xs4all.nl (smtp1.xs4all.nl [194.109.6.51])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id KAA18665
  12.     for <amos-list@access.digex.net>; Fri, 4 Apr 1997 10:39:42 -0500 (EST)
  13. Received: from xs4all.nl (collin@drt01-22.dial.xs4all.nl [194.109.42.23]) by smtp1.xs4all.nl (8.7.6/XS4ALL) with SMTP id RAA09554; Fri, 4 Apr 1997 17:39:34 +0200 (MET DST)
  14. From: Branko Collin <collin@xs4all.nl>
  15. To: Jamie B <jamieb5@hotmail.com>
  16. CC: Amos Discussion List <amos-list@access.digex.net>
  17. Date: Thu, 03 Apr 1997 17:46:41 +0100
  18. Message-ID: <yam7032.2088.3048856@smtp.xs4all.nl>
  19. In-Reply-To: <199704031225.EAA08388@f9.hotmail.com>
  20. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  21. Subject: Re: Just plain Subjects
  22. MIME-Version: 1.0
  23. Content-Type: text/plain
  24. Status: RO
  25. X-Status: 
  26.  
  27. On 03-apr-97 Jamie B wrote:
  28.  
  29. >Okay, I'm not going to brag on about anything... All I want to know
  30. >is how to use normaly inputs and take "BITS" from it, and make it
  31. >NON case sensative...
  32. >  So if I took say this:
  33. >
  34. > Eat the cow
  35. >
  36. > And the cow didn't exist, it should say:
  37. >
  38. > There is no cow to eat.
  39.  
  40. Split the input into words, using Instr() to find the spaces.
  41.  
  42. Your parser must know about 'eat' and 'the' of course.
  43.  
  44. Compare 'cow' with the list of possible nouns. If it is not there, print the
  45. message (i.e. Print "There is no ";NOUN$;" to eat").
  46.  
  47. If you are making a text adventure, you might as well take a look at the
  48. several adventure development systems there are. A whole bunch of them can be
  49. found at ftp://ftp.gmd.de/if-archive/.
  50.  
  51. > I don't know ho to do that normally...
  52. > Also: Case sensetive etc:
  53. >
  54. > I want this:
  55. >
  56. >     HELLO
  57. >
  58. > To be the same as this:
  59. >    
  60. >     HeLlO
  61. >
  62. > (No case discrimination)...
  63.  
  64. Have the test words in memory in upper case only. So:
  65. VERB$(1) = "EAT"
  66. VERB$(2) = "HELLO"
  67. VERB$(3) = "NORTH", etc.
  68.  
  69. Now, before you test, convert the input to uppercase:
  70.  
  71. UPIN$ = Upper$(IN$)
  72.  
  73. Hello, HEllO, HELLO, hello, etc. will all be converted to uppercase and can so
  74. be tested against the list of test words.
  75.  
  76. -----
  77. Branko Collin       http://www.xs4all.nl/~collin
  78. collin@xs4all.nl    http://www.kun.nl/undans/members/branko.htm
  79.      "Erm... Erm... should I say something interesting now?"
  80.                          - Branko Collin -
  81.